package bulk_param.controller;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import bulk_param.view.Open_Contact_Num_View;


public class AideIndicatifOuvertureController implements MouseListener{
	
	private Open_Contact_Num_View open_Contact_Num_View;
	
	public AideIndicatifOuvertureController(Open_Contact_Num_View open_Contact_Num_View){
		this.open_Contact_Num_View=open_Contact_Num_View;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		
		if(e.getSource().equals(open_Contact_Num_View.txtZABPQ)){
			if(open_Contact_Num_View.txtZABPQ.getText().isEmpty()){
			}else{
			if(open_Contact_Num_View.txtZABPQ.getText().substring(0,1).equalsIgnoreCase("+")){
				System.out.println("remove indicatif pays");
				open_Contact_Num_View.txtZABPQ.setText("");
			}
			}
		}
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}
}


